import {request} from "../request";
import {utils} from "../../common/utils";
//查询所有会议室
export function chember({maxCapacity,status}){
    return request({
        url:'/adm/hy/query',
        method:'get',
        params:{
            maxCapacity,
            status
        }
    })
}
//新增会议室
export function addchember(chember){
    console.log('chamber',chember)
    return request({
        url:"/adm/hy/add",
        method :'post',
        data: chember
    })

}
//根据编号修改会议室状态
export function updateChamber(chamber) {
    return request({
        url:"/adm/hy/update",
        method:"put",
        data:chamber
    })

}
//根基id删除
export function deleteChamber(ids){
    let url=utils.joinArrayReqParam(ids,"ids")
    return request({
        url:'/adm/hy/delete' + url,
        method:'delete'
    })
}

